'use strict';

var express = require('express');
var router = express.Router();

/* get <%=reource.name %> listing. */
router.get('/<%= resource.prefix %>', function(req, res) {
  var offset = req.query._offset || 0;
  var number = req.query._number || 10;
  var query = req.query._query;
  res.send('respond with a resource');
});

/* get <%= reource.name %> by id */
router.get('/<%= reource.prefix %>/:id', function(req, res) {
  var id = req.params.id;
  res.send('respond with a resource');
});

/* create a new <%= reource.name %> */
router.post('/<%= reource.prefix %>', function(req, res, next) {
  var data = req.body;
  res.send('respond with a resource');
});

/* delete a <%= reource.name %> */
router.delete('/<%= reource.prefix %>/:id', function(req, res) {
  var id = req.params.id;
  res.send('respond with a resource');
});

/* update a <%= reource.name %> by id */
router.put('/<%= reource.prefix %>/:id', function(req, res) {
  var id = req.params.id;
  var data = req.data;
  res.send('respond with a resource');
});

module.exports = router;
